//
//  KanjiaView.m
//  KCFurProject
//
//  Created by ios程序员 on 15/11/3.
//  Copyright (c) 2015年 ios程序员. All rights reserved.
//

#import "KanjiaView.h"

@implementation KanjiaView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width/2,self.frame.size.height)];
        self.imageView.backgroundColor = [UIColor purpleColor];
        [self.imageView setImage:[UIImage imageNamed:@"shop-01"]];
        [self addSubview:self.imageView];
        
        self.imageView1 = [[UIImageView alloc] initWithFrame:CGRectMake(self.frame.size.width/2, 0, self.frame.size.width/2,self.frame.size.height/2)];
        [self.imageView1 setImage:[UIImage imageNamed:@"shop02"]];

        self.imageView1.backgroundColor = [UIColor yellowColor];

        [self addSubview:self.imageView1];
        
        
        self.imageView2 = [[UIImageView alloc] initWithFrame:CGRectMake(self.frame.size.width/2, self.frame.size.height /2, self.frame.size.width/4,self.frame.size.height/2)];
        self.imageView2.backgroundColor = [UIColor blueColor];
        [self.imageView2 setImage:[UIImage imageNamed:@"liji"]];


        [self addSubview:self.imageView2];
        
        self.imageView3 = [[UIImageView alloc] initWithFrame:CGRectMake(self.frame.size.width/4*3, self.frame.size.height/2, self.frame.size.width/4,self.frame.size.height/2)];
        [self.imageView3 setImage:[UIImage imageNamed:@"liji"]];

        self.imageView3.backgroundColor = [UIColor grayColor];

        [self addSubview:self.imageView3];

    }
    return self;
}

@end
